import request from '@/utils/request'

export default {
  //获取所有分类数据
  getList(){
    return request({
      url: '/subject/getBackList',
      method: 'get',
    })
  },
  //查询所有一级分类
  getOneSubject(){
    return request({
      url: '/subject/getOneSubject',
      method: 'get',
    })
  },
  //添加课程分类
  addSubject(subject){
    return request({
      url: '/subject/addSubject',
      method: 'post',
      data:subject
    })
  }

}
